package com.lagou.order.feign.fallback;

import com.lagou.common.pojo.Goods;
import com.lagou.order.feign.OrderFeign;
import org.springframework.stereotype.Component;

@Component
public class OrderFeignFallback implements OrderFeign {
    @Override
    public Goods getGoodsById(Integer id) {
        Goods goods = new Goods();
        goods.setId(0);
        goods.setName("1");
        goods.setPrice(0);
        goods.setStock(0);
        goods.setType("xxx");
        goods.setStatus(0);
        return goods;
    }
}
